
------------------------------------

.MAP
(all data seems aligned to be multiple 16)

header size usually 0x80 (128 bytes)
0x00    4B   MAP1 (0x4D415031)
0x04   12B   zeros (16byte aligned)
Pointers (if value 0x0, section not present)
0x10    4B   Pointer to YNDT/YNPR/YNSC
....    4B   unknown pointers
0x3c    4B   Pointer to YNDT/YNGM
0x40    4B   Pointer to YNDT/YNFT

YNDT/???? blok:
 - array of YNXX sections
 - starts with YNDT, ends with YNED
 - number of section can vary

YNXX section:
YNXX baseinfo (16 bytes)
YNXX data (varies, 16 bytes aligned), size from baseinfo 

YNXX baseinfo (size 16bytes, aligned to be multiple 16B)
0x00    4B   section id/type - YNXX
0x04    4B   section data size divided by 0x10
0x08    8B   zeros (16byte aligned)

YNXX = 
YNDT (0x594E4454) - start indication, size always 0
YNED (0x594E4544) - end indication, size always 0
YNGM  ???
YNFT  ???
YNPR (0x594E5052) - number of YNSC sections, size always 1 = 16 bytes,
   Data:
   0x00  16B   number of YNSC sections (probadly 4B and padding)
YNSC (0x594E5343) - background images
   Data:
   0x00   16B   number of images (4B and padding)
   0x10   XY    array of images
   Array of images [], structure:
   0x00    4B   some mark? First byte value sometimes change, second 0x80
   0x04    4B   widht  (for drawing, dont need be same as 'stored data width')
   0x08    4B   height
   0x0C    4B   ??? X position?
   0x10    4B   ??? Y position?
   0x14    4B   ??? some value > 0x4100, usually differ (Z-position)?
   0x18    8B   ??? zeros? padding?
   0x20   24B   ??? always same? zeros and two "0x100" values
   0x38    8B   ??? always same? 0x44 and zeros
   0x40   80B   ??? depths (z-coords?) (0x80808080, 4 values, 4 zeros, 4 values, 4 zeros)
   0x90   16B   number of animations
   0xA0   (4B*number of animations, aligned to multiple 16)   ??? animations ID?
   0xB0+  16B   ??? some 'end' mark? second byte value differ (0x13??3C00)
   0xC0+  16B   width, height, anim./img. count, data size + 0x10 ('data size')
   0xD0+  XYB   array of animation
                Array of animations [], structure:
                0x00   16B   image data size/16 + 0x8000, 0x08000000, 8B zeros
                0x10   XYB   image data
   +XYB+  PXB   paletes data
                structure:
                0x00   16B   ??? zeros
                0x10   16B   ??? 002E0100/802E0100
                0x20   16B   width, height, palettes count, data size + 0x10 ('data size')
                0x30   XYB   array of palettes
                             (same as Array of animations [] structure)
                             0x00   16B   palete data size/16 + 0x8000, 0x08000000, 8B zeros
                             0x10   XB    palete data

Notes:
'palette index' for bitmap is same as 'bitmap index'
(i.e. first bitmap use first palette, second bitmap use second palette, ...)
? last palette for each image is buffer (= there is copied actual/last used palette)?
(based on memory snapshot)

------------------------------------


some raw graphics:
--------------
(.gwh)
4B width
4B height
8B zeros
1024B paletes (RGBA?)
width*height bitmap 8bit data
= filesize = width*height + 4B+4B+8B + 1024B


------------------------------------

some graphic pack:
(.gp)
4B 0x01000000
4B count of records
8B zeros
[count] structs
  2B width
  2B height
  4B 0x08FFFFFF
  4B pointer to palette
  4B pointer to data

------------------------------------

------------------------------------

------------------------------------

------------------------------------

.graw
0x1400 (5120)  palettes
from 0x1400 data....... of unknown format

------------------------------------
